package com.yang.flower.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yang.flower.entity.Notice;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Description: TODO
 * @Author: Yang
 * @DateTime: 2023/2/12 17:23
 **/
@Mapper
public interface NoticeMapper extends BaseMapper<Notice> {
    List<Notice> list();

    List<Notice> listByNewTime();

    Notice getById(@Param("id") Integer id);

    List<Notice> page(@Param("currentPage") int currentPage,@Param("pageSize") int pageSize);

}
